﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using ZkSurvey.Common.SurveyMgr;
using ZkSurvey.DAL.SurveyMgr;

namespace ZkSurvey.BLL.SurveyMgr
{
    public class DataDictionaryBl
    {
        public List<DicQuestionType> GetQuestionTypes()
        {
            return DicQuestionTypeDa.GetDicQuestionTypeList();
        }

        public DicQuestionType GetQuestionType(int id)
        {
            List<DicQuestionType> types = DicQuestionTypeDa.GetDicQuestionTypeList();
            return types.Find(t => t.Id == id);
        }
    }
}
